package icu.thatyear.main.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 商品收藏表
 * </p>
 *
 * @author Cjy
 * @since 2024-12-06
 */
@Getter
@Setter
@TableName("tz_prod_favorite")
@Schema(name = "TzProdFavorite", description = "商品收藏表")
public class TzProdFavorite implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId(value = "favorite_id", type = IdType.AUTO)
    private Long favoriteId;

    @Schema(description = "商品ID")
    @TableField("prod_id")
    private Long prodId;

    @Schema(description = "收藏时间")
    @TableField("rec_time")
    private LocalDateTime recTime;

    @Schema(description = "用户ID")
    @TableField("user_id")
    private String userId;
}
